home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 029a / smartpt.zip / README.TXT next >
Text File  |  1993-05-19  |  6KB  |  106 lines

  1.  
  2.                                   SMART PROMPT
  3.  
  4.                               Notice of Copyrights
  5.     ------------------------------------------------------------------------
  6.     This file and the enclosed SMARTPMT.COM file are copyright 1993 by Steve 
  7.     Gibson, Irvine, California, USA. *** ALL RIGHTS RESERVED ***  These 
  8.     files may be freely distributed and used for any purpose whatsoever so 
  9.     long as they are kept together and not modified in any way.
  10.     ------------------------------------------------------------------------
  11.  
  12.     The enclosed program, SMARTPMT.COM (Smart Prompt) is Steve Gibson's tiny 
  13.     (336 resident bytes) TSR which helps to prevent drive (and especially 
  14.     DoubleSpace) partition corruption in DOS 6.0 systems.
  15.     
  16.     When returning to the DOS system prompt with hard disk cached data not 
  17.     yet completely written to any drive, SMARTPMT triggers immediate disk 
  18.     cache writing and briefly suspends the return of the DOS system prompt 
  19.     until Microsoft's Smart Drive disk cache has finished all writing. 
  20.     
  21.     SMARTPMT.COM requires only a tiny bit of RAM space yet it makes the DOS 
  22.     6.0 prompt completely safe again. 
  23.  
  24.     This program was originally written to supplement Steve Gibson's weekly 
  25.     InfoWorld Magazine TechTalk column of May 17th, 1993.  The text of that 
  26.     column is provided below for additional background: 
  27.  
  28.                    ******************************************* 
  29.                          Steve Gibson's TechTalk Column 
  30.                          for InfoWorld's May 17th, 1993,
  31.                                    Issue # 20 
  32.                    ******************************************* 
  33.  
  34.     Last week I alluded to the belief that I knew what was causing this 
  35.     "DoubleSpace nuked me after ten days!" behavior which seems to be so 
  36.     prevalent. Also last week, InfoWorld's Test Lab magician, Kevin Strehlo, 
  37.     who's been pursuing many DOS 6.0 loose ends, indicated that he had 
  38.     determined that many of the problems InfoWorld had experienced with 
  39.     "DoubleSpace" turned out to be related to the write deferring behavior 
  40.     of SmartDrive. I believe that he hit the nail squarely on the head! 
  41.  
  42.     The "loaded gun" (which is all too often found to be smoking) that 
  43.     Microsoft mistakenly placed into DOS 6.0 is their default installation 
  44.     of SmartDrive 4.1 with its "lazy writing" option active. As you may 
  45.     know, lazy writing means that the system's hard disk cache buffers data 
  46.     which needs to be written to the hard disk drive so that the operating 
  47.     system and its applications don't need to wait around for this writing 
  48.     to occur. The cache intercepts the system's write requests, placing the 
  49.     data quickly into temporary RAM memory, and immediately returns control 
  50.     to the application or operating system. At some later point, after the 
  51.     system and the hard disk drive have been idle for a while, the system's 
  52.     hardware clock "wakes up" the cache and triggers a gradual "flushing" of 
  53.     its buffers. 
  54.  
  55.     I don't believe that write deferring is a bad thing at all, in fact I 
  56.     believe it's a very worthwhile technology which we're as stuck with as 
  57.     we are with compression, but with deferred writing comes some clear 
  58.     responsibility. Microsoft's automatic installation of SmartDrive write 
  59.     deferral in DOS 6.0 completely fails to disclose the inherent dangers of 
  60.     this technology. 
  61.  
  62.     It took us quite a while to explain to the many tens of millions of 
  63.     computer users why they could not simply turn the computer off while 
  64.     they were still within Wordperfect or Lotus after printing their 
  65.     document.  We also had to explain that they really should not press that 
  66.     little red button on the front of the machine without trying a number of 
  67.     other things first. The continual accumulation of lost hard disk cluster 
  68.     chains only ceased once they had all finally learned to first save their 
  69.     documents then exit Wordperfect, returning to the safe DOS prompt BEFORE 
  70.     reaching down to flip the power switch of their machine.  Then one night 
  71.     without notice, DOS 6.0 was installed upon their system and this once 
  72.     fail-safe behavior became a recipe for guaranteed failure and, when 
  73.     coupled with DoubleSpace, assured hard disk data loss. 
  74.  
  75.     Check it out for yourself: After DOS 6.0's default installation, and 
  76.     depending upon the speed and performance of the host computer system, if 
  77.     you exit to DOS from within an application, responding "YES" to the 
  78.     prompt to "Save Modified Document", on your way out, you'll receive the 
  79.     DOS prompt immediately, while after a short pause the light on the 
  80.     system's hard disk will begin to flicker as it only then begins writing 
  81.     the document out to the hard disk drive. How would you like to turn the 
  82.     computer off right then? No? Well, across the planet this is the danger 
  83.     which DOS 6.0 has created for its trusting users. 
  84.  
  85.     What can you do? I can suggest only three cures for this dilemma: You 
  86.     could override SmartDrive's default behavior, in the process losing the 
  87.     performance benefits it delivers. Or you could reeducating all those 
  88.     tens of millions of computer users about this NEW danger and of their 
  89.     new responsibility to prevent disaster. Or you could install the tiny 
  90.     TSR I wrote for the purpose, which triggers an immediate flushing of all 
  91.     pending SmartDrive writes when returning to DOS and suspends the return 
  92.     of the DOS prompt until the cache has been completely cleaned out. It 
  93.     makes the DOS prompt safe once again. 
  94.  
  95.     I call it "SmartPrompt" and I wrote it for you. It occupies just 336 
  96.     bytes of memory, is loadable high or low, and as far as I've been able 
  97.     to tell it completely solves the problem of this "early return" of the 
  98.     MS-DOS 6.0 prompt when under the influence of the otherwise very nice 
  99.     and high performance SmartDrive 4.1 hard disk cache. You can find it on 
  100.     Compuserve or from my BBS at (714) 362-8848. I hope it saves some data! 
  101.     
  102.                                       -30-
  103.  
  104.                               README.TXT file ends
  105.     ------------------------------------------------------------------------
  106.